﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class updateinspection : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "Code",
                table: "InspectionTypeDescs",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "FileId",
                table: "InspectionStandardDescs",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "IsReturn",
                table: "InspectionStandardDescs",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<Guid>(
                name: "ProcessId",
                table: "InspectionStandardDescs",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProcessesCode",
                table: "InspectionStandardDescs",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProcessesName",
                table: "InspectionStandardDescs",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "StepId",
                table: "InspectionStandardDescs",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TechniqueName",
                table: "InspectionStandardDescs",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TechniqueNumber",
                table: "InspectionStandardDescs",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WorkStepCode",
                table: "InspectionStandardDescs",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Code",
                table: "InspectionSeverityDescs",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Code",
                table: "InspectionItemInfos",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Code",
                table: "InspectionTypeDescs");

            migrationBuilder.DropColumn(
                name: "FileId",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "IsReturn",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "ProcessId",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "ProcessesCode",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "ProcessesName",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "StepId",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "TechniqueName",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "TechniqueNumber",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "WorkStepCode",
                table: "InspectionStandardDescs");

            migrationBuilder.DropColumn(
                name: "Code",
                table: "InspectionSeverityDescs");

            migrationBuilder.DropColumn(
                name: "Code",
                table: "InspectionItemInfos");
        }
    }
}
